package com.tarim.wheat.mapper;

import com.tarim.wheat.model.Message;
import com.tarim.wheat.vo.Criteria;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

import java.util.List;

@Mapper
@Component("MessageMapper")
public interface MessageMapper {
    int insert(Message record);

    Long selectByUserCount(Criteria criteria);

    List<Message> selectByUser(Criteria criteria);

    int updateForDelete(List list);
}